'use strict';

import React from 'react';
import {render} from 'react-dom';
import  {
    Router,
    Route,
    IndexRoute,
    browserHistory
} from 'react-router';
import {
    Login,
    DDStatistics
} from './pages';
import { API } from './res';

if (typeof(Storage) === undefined) {
    alert('你的浏览器不能使用本系统，请更换或升级浏览器。');
}
let routes = (
    <Route path="/">
        <IndexRoute component={DDStatistics} />
        <Route path="Login" component={Login}/>
        <Route path="DDStatistics" component={DDStatistics} />
    </Route>
);
let props = {
    routes: routes,
    history: browserHistory
};
render(<Router {...props} />, document.getElementById('content'));




